* calendar/todo-mode.el: Miscellaneous bug fixes.
authorStephen Berman <stephen.berman@gmx.net>
Fri, 23 May 2014 12:10:50 +0000 (14:10 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Fri, 23 May 2014 12:10:50 +0000 (14:10 +0200)
commit9703692b9fe92669efd0f3d2bc215ecfa2930736
tree9b57987d4f51cf53d1a8e1631907270df31af6f0
parent3d01a4ea2e781d7080e17b1f0d2491514ce519bd
* calendar/todo-mode.el: Miscellaneous bug fixes.
(todo-delete-file): When deleting an archive but not its todo
file, make sure to update the todo file's category sexp.
(todo-move-category): Keep the moved category's name unless the
file moved to already has a category with that name.  If the
numerically last category of the source file was moved, make the
first category current to avoid selecting a nonexisting category.
(todo-merge-category): Fix implementation to make merging to a
category in another file work as documented.  Eliminate now
insufficient and unnecessary renaming of archive category, correct
document string accordingly, and clarify it.  If the numerically
last category of the source file was merged, make the first
category current to avoid selecting a nonexisting category.
(todo-archive-done-item): When there are marked items and point
happens to be on an unmarked item, ignore the latter.  Don't leave
point below last item after archiving marked items.
(todo-unarchive-items): Fix logic to ensure unarchiving an item
from an archive with only one category deletes the archive only
when the category is empty after unarchiving.  Make sure the todo
file's category sexp is updated.
(todo-read-file-name): Allow an existing file name even when it is
not required (todo-move-category needs this to work as documented).
(todo-add-file): Call todo-validate-name to reject the name of an
existing todo file (needed due to fix in todo-read-file-name).
(todo-reset-nondiary-marker): Also reset in filtered items files.
(todo-reset-done-string, todo-reset-comment-string): Also reset in
regexp filtered items files.
(todo-reset-highlight-item): Also reset in filtered items files.
Fix incorrect variable reference in document string.
lisp/ChangeLog
lisp/calendar/todo-mode.el